#pragma once

#include "ScriptCompiler/ASTBuilder/ASTBuilder.h"
#include "ScriptCompiler/AST/SentenceBlockNode.h"

class CSentenceBlockBuilder : public IASTBuilder
{
public:
    CSentenceBlockBuilder(std::shared_ptr<CScriptFileContext> InContext,int32_t InEndTokenIndex);

    virtual bool ReadCurentToken() override;

    std::shared_ptr<CSentenceBlockNode> Result;
protected:
    std::shared_ptr<CScriptFileContext> Context;

    //bool ReadNextSentence();

    int32_t EndTokenIndex;
};